/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package concurrent.queue;

/**
 *
 * @author harker777
 */
public class CommonDataStorage {

	private static final Integer QUEUE_SIZE = 10;
	private static final Integer PRODUCER_MAX_WAIT_TIME = 20000;
	private static final Integer CONSUMER_MAX_WAIT_TIME = 30000;
	
	private static int[] data = new int[QUEUE_SIZE];
	private static Integer currentProducing = -1;
	private static Integer currentConsuming = -1;
	private static Integer currentNumber = 1;
	private static Integer totalNumber = 1;

	public static int[] getData() {
		return data;
	}

	public static void setData(int[] aData) {
		data = aData;
	}

	public static Integer getCurrentProducing() {
		return currentProducing;
	}

	public static void setCurrentProducing(Integer aCurrentProducing) {
		currentProducing = aCurrentProducing;
	}

	public static Integer getCurrentConsuming() {
		return currentConsuming;
	}

	public static void setCurrentConsuming(Integer aCurrentConsuming) {
		currentConsuming = aCurrentConsuming;
	}

	public static Integer getCurrentNumber() {
		return currentNumber;
	}

	public static void setCurrentNumber(Integer aCurrentNumber) {
		currentNumber = aCurrentNumber;
	}

	public static Integer getTotalNumber() {
		return totalNumber;
	}

	public static void setTotalNumber(Integer aTotalNumber) {
		totalNumber = aTotalNumber;
	}

	public static Integer getQueueSize() {
		return QUEUE_SIZE;
	}

	public static Integer getProducerMaxWaitTime() {
		return PRODUCER_MAX_WAIT_TIME;
	}

	public static Integer getConsumerMaxWaitTime() {
		return CONSUMER_MAX_WAIT_TIME;
	}
}
